home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Lexis Nexis Millenium Plus Collection 1997 to 1997
/
Lexis-Nexis Millenium Plus Collection - 1996-97 (Lexis-Nexis)(LA1173-0 07-96)(1996).bin
/
pc
/
internet
/
scripts
/
scripts.z
/
LATA.SCR
< prev
next >
Wrap
Text File
|
1996-01-25
|
1KB
|
63 lines
!
! Copyright (c) 1995
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! LATA:
! Connect to LATA
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
! Arg1 = False if Network setting is LATA-Ct, True if LATA
!
!+V
! "3.8"
!-V
show "Connecting to LATA";
Tries = 5;
on cancel goto Return_Cancel;
Response_Char = ".";
if Arg1 = %TRUE goto Send_Response;
Response_Char = "H"; ! Ct. LATA selected
Send_Response:
if Tries = 0 goto LATA_Failure;
Tries = Tries - 1;
wait until 5;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send %CR;
Wait_LATA:
wait
"*" goto Send_LATA_Host,
"COM^M" goto Return_Success,
"Err" goto Send_LATA_Host,
%mdm_Failure goto LATA_Failure
until 70;
goto Send_Response;
Send_LATA_Host:
send ".CPS" & %CR;
goto Wait_LATA;
LATA_Failure:
define %FailureMsg = "LATA not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;